package com.wn.pettyloan.service;

import com.wn.pettyloan.entity.Contract;
import com.wn.pettyloan.entity.ContractTemplate;
import com.wn.pettyloan.vo.HistogramVo;

import java.util.List;
/*
  * @Author 国雨浓
  * @Description  合同表
  * @Date 14:09 2022/12/8
  * @Param 
  * @return 
  **/

public interface ContractService {
    List<HistogramVo> histogram();
    int deleteByPrimaryKey(Long id);

    int insertSelective(Contract record);

    Contract selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Contract record);

    List<Contract> selectAll();

    ContractTemplate getNewContractByUserId(Integer userId, Integer status);

    int insertAndGetPK(Contract contract);
}
